/*-------------------------------------------------------------------------

   File :			ist.h
   Project :        VeriFone Base application
   Library :
   Description :    ISO Control Table
   Notes :
    The Host Definition Table record structure, all character array fields are
    left alligned, space filled on the right if it is of lesser length, and
    null terminated.
   Modification History :
     #     Date      Who                     Description
   ----- -------- ---------- ---------------------------------------------
 **************************************************************************

   Copyright (C) 1996 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifdef ISO8583_DEFINED


typedef struct TagIST_REC
{
   	char szTerminalID[ISO8583_TID_SIZE + 1];
   	char szMerchantID[ISO8583_MID_SIZE + 1];
	char szTPDU[ISO8583_TPDU_SIZE + 1];    	  		/* Transport protocol data unit */
	char szNII[ISO8583_NII_SIZE + 1];         		/* NII information     			*/
    char szMerchType[ISO8583_MERCH_TYPE_SIZE + 1];  /* Merchant Type				*/
    char szBankID[ISO8583_BANK_ID_SIZE + 1];
	char szCountryCode[ISO8583_COUNTRY_CODE_SIZE + 1];  /* Country Code for field 19    */
	char szManualDebitPOSEntryCode[ISO8583_POS_EM_SIZE + 1];
	char szSwipeDebitPOSEntryCode[ISO8583_POS_EM_SIZE + 1];
	char szManualPOSEntryCode[ISO8583_POS_EM_SIZE + 1];
	char szSwipePOSEntryCode[ISO8583_POS_EM_SIZE + 1];
	int  inISOSendBufferSize;
	int  inISOReceiveBufferSize;
    int	 inCustomInt;								/* Custom Integer Var. */

	unsigned fBatchUpldVoidAsOrigTx   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved2   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved3   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved4   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved5   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved6   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved7   : 1;  /* 0-No,  1-Yes    	      */
	unsigned fReserved8   : 1;  /* 0-No,  1-Yes    	      */
} IST_REC;

#define SIZE_IST_REC  sizeof(IST_REC)

extern const char *szGlobalISTFileName;

inLoadISTRec(int, IST_REC *);

#endif /* ISO8583_DEFINED */
